package com.listen.model;

import java.io.Serializable;
import java.util.Date;

public class Study implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * userid
     */
    private Integer uid;

    /**
     * 身份证号
     */
    private String code;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 专业名称
     */
    private String zyName;

    /**
     * 请求地址
     */
    private String url;

    /**
     * ip端口
     */
    private String ip;

    /**
     * 请求cookie
     */
    private String cookie;

    /**
     * 参数
     */
    private String params;

    /**
     * 第几节课
     */
    private Integer num;

    /**
     * 成功标识1成功，默认0
     */
    private Integer successFlag;

    /**
     * 更新时间
     */
    private Date updateTime;
    
    private int state = 1;
    
    private String prefixUrl;
    
    private int lastFlag = 0;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getZyName() {
        return zyName;
    }

    public void setZyName(String zyName) {
        this.zyName = zyName == null ? null : zyName.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie == null ? null : cookie.trim();
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params == null ? null : params.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getSuccessFlag() {
        return successFlag;
    }

    public void setSuccessFlag(Integer successFlag) {
        this.successFlag = successFlag;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getPrefixUrl() {
		return prefixUrl;
	}

	public void setPrefixUrl(String prefixUrl) {
		this.prefixUrl = prefixUrl;
	}

	public int getLastFlag() {
		return lastFlag;
	}

	public void setLastFlag(int lastFlag) {
		this.lastFlag = lastFlag;
	}

	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", code=").append(code);
        sb.append(", createTime=").append(createTime);
        sb.append(", zyName=").append(zyName);
        sb.append(", url=").append(url);
        sb.append(", ip=").append(ip);
        sb.append(", cookie=").append(cookie);
        sb.append(", params=").append(params);
        sb.append(", num=").append(num);
        sb.append(", successFlag=").append(successFlag);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}